<?php
/**
 * User: Ngannv
 * Email: ngankt2@gmail.com
 * Y!M : ngankt2
 * Date: 8/21/11
 * Time: 3:47 AM
 */

include_once 'jUserExt.php';
class jUser extends jController
{
    public function __construct()
    {
        parent::__construct();
    }

    public function index()
    {
        self::$act = $this->getParam('act');
        if (self::$act) {
           return $this->getAct(self::$act);
        } else {
            return $this->getList();
        }
    }

    /*
   * Lấy toàn bộ danh sách thành viên
   * */
    public function getList()
    {
        $template = $this->jSmarty->getTemplate(ADMIN_DIR . 'jUser/jUser.tpl');
        return $template;
    }

    public function add()
    {
        $template = $this->jSmarty->getTemplate(ADMIN_DIR . 'jUser/juser_add.tpl');
        return $template;
    }

}
